
	<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link href="__PUBLIC__/Theme3/css/font-awesome.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
<meta name="format-detection" content="telephone=no">
<script language="javascript" src="__PUBLIC__/Theme3/js/jquery-1.11.1.min.js"></script>
<script language="javascript" src="__PUBLIC__/Theme3/js/jquery.gcjs.js"></script>
<!--<link rel="stylesheet" type="text/css" href=".__PUBLIC__/Theme3/addons/sz_yi/template/mobile/default/static/css/style_red.css">-->



<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/base.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/jquery-weui.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/weui.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/style.css">
<!--new add start for style1 2016.09.09-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/font-awesome.min(1).css">

<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/style1.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/main.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/iconfont.css">
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/mui.min.css">
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/tuandui.css">
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/icons-extra.css"/>

<nav class="mui-bar mui-bar-tab">
	    		    <a href="__APP__/Index/index" class="mui-tab-item">
	    		        <span class="mui-icon mui-icon-home"></span>
	    		        <span class="mui-tab-label">首页</span>
	    		    </a>
	    		     <a href="__APP__/User/add_user" class="mui-tab-item">
                      <span class="mui-icon mui-icon-extra mui-icon-extra-addpeople
                                   "></span>
                      <span class="mui-tab-label">注册</span>
                    </a>
                    <a href="__APP__/User/team" class="mui-tab-item">
                      <span class="mui-icon mui-icon-extra mui-icon-extra-peoples"></span>
                      <span class="mui-tab-label">团队</span>
                    </a>
	    		    <a  href="__APP__/User/UserSet" class="mui-tab-item ">
	    		        <span class="mui-icon mui-icon-gear"></span>
	    		        <span class="mui-tab-label">设置</span>
	    		    </a>
	    		</nav>
    <!--new add end for style1-->
<!--new add end for style1-->
<script>window.PointerEvent = undefined</script></head>
<body>


<title>历史订单</title>

<style type="text/css">

body {
    font-family: Arial, Helvetica, Sans-Serif;
    background-color: #fff;
}
    .mui-bar a:active{color:#007aff}
    .mui-bar a:hover{color:#007aff}
    .mui-bar a:link{color:#007aff}

/*通用*/
/* common */
.flex {
    display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
    display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
    display: -ms-flexbox;      /* TWEENER - IE 10 */
    display: -webkit-flex;     /* NEW - Chrome */
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;             /* NEW, Spec - Opera 12.1, Firefox 20+ */
}
/* 宽度随屏幕改变变化 */
.flex-1 {
    flex: 1;
    -webkit-flex: 1;
}

/* 垂直 水平 居中 */
.flex-center {
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
}
/* 垂直 居中 */
.flex-ver {
    align-items: center;
    -webkit-align-items: center;
}
.flex-col-ver{
    justify-content: center;
    -webkit-justify-content: center;
}
/* 换行 */
.flex-wrap{
    flex-wrap: wrap;
    -moz-flex-wrap:wrap;
    -webkit-flex-wrap: wrap;
}
.flex-reverse{
    flex-direction:row-reverse;
    -webkit-flex-direction:row-reverse;
    -moz-flex-direction:row-reverse;
}
/* flex 容器（设置为flex）内子元素向两边顶齐平分 */
.flex-jcsb {
    justify-content: space-between;
    -webkit-justify-content: space-between;
}
/*中间空白左右各一个*/
.flex-around{
    justify-content: space-between;
    -webkit-justify-content: space-between;
  }
/*平均分每个空间*/
.flex-pjf{
    justify-content: space-around;
    -webkit-justify-content: space-around;
}
.flex-end{
    align-items: flex-end;
    -webkit-align-items: flex-end;
}
.flex-end1{
    justify-content: flex-end;
    -webkit-justify-content: flex-end;
}

.flex-col {

    flex-direction: column;
    -webkit-flex-direction: column;

}
/*通用结束*/
.rucian_ny{
    width: 85%;
    margin: 0 auto;
    margin-top: 5%;
    padding: 10px;
    background-color: rgb(242, 242, 242);
    position: relative;
}
.rucian_ty{
    position: absolute;
    width: 68px;
    background-color: white;
    border-radius: 6px;
    text-align: center;
    line-height: 35px;
    right: 20px;
    color: rgb(0, 0, 0);
    top: 50%;
    margin-top: -17.5px;
}
.rucian_ty_dianz{    top: 153px;}
.rucian_sj{
    width: 80%;
    margin: 19% auto;
    text-align: center;
    font-size: 16px;
    color: rgb(26, 196, 199);
}

.backcover{background:rgba(0,0,0,0.5);width:100%;height:100%;position:fixed;top:0px;left:0px;z-index:999;display:none;}
.backcover a{    background: #fff;
    padding: 10px 40px;
    position: absolute;
    bottom: 8%;
    left: 31%;
    z-index: 1001;}

.sjtimes{float:right;}
a:visited{text-decoration:none;color:rgb(0, 0, 0)}
</style>
<div class="backcover"></div>
<div id="container">
<div class="page_topbar">
    <a href="javascript:;" class="back" onclick="javascript:location.href='userchecksj'"><i class="fa fa-angle-left"></i></a>
    <div class="title">历史订单</div>
	
</div>


<foreach name="shList" item="user">
	<div class="rucian_ny">
	<div>
<{$user.curlevel}>星 升 <{$user.targetlevel}>星</div>
    <div>对方ID：<{$user.user_id}> <span class="sjtimes"> 点赞次数：<{$user.dztimes}> </span></div>
    
    <div>姓名：<{$user.user.truename}></div>
    <div>手机号码：<{$user.loginname}></div>
    <div>微信号：<img src="/uploads/<{$user.user.wximg}>" style="width:80px;" sflag="true" onclick="imgclick(true,this)"/></div>
     <a href="javascript:;" class="rucian_ty">已审核</a>
	 <if condition="$user[isz] eq 0">
	<a onclick="javascript:dianz(this,<{$user.id}>,<{$user.loginname}>,<{$user.curuser}>);" class="rucian_ty rucian_ty_dianz">点赞</a> 
		
	 <else/>
		<a href="javascript:;" class="rucian_ty rucian_ty_dianz">已点赞</a>
	 </if>
	 
</div>

</foreach>


<script>
var flag = true,//状态true为正常的状态,false为放大的状态
           imgH,//图片的高度
           imgW,//图片的宽度
           img = document.getElementsByTagName('img');//图片元素

	function dianz(obj,id,name,curuser){
		 $.ajax({
				type: "POST",
				url: "__URL__/dianzaction",
				data: {"id":id,"name":name,"curuser":curuser},
				success: function (result) {
					var strresult=result;
					if(strresult==1){
						$(obj).html("已点赞");
					}
					else{
						alert("点赞失败");
						
					}
				},
				error: function(data) {
					
				 }

			});
	}
	
	
   function imgclick(flag,img){
   //图片点击事件
       imgH = img.height; //获取图片的高度
       imgW = img.width; //获取图片的宽度
		flag = $(img).attr("sflag");
		console.log($(img).attr("sflag"));	
	  
       if(flag=="true"){
		$(".backcover").css("display","block");
           //图片为正常状态,设置图片宽高为现在宽高的2倍
           flag = false;//把状态设为放大状态
           //img.height = imgH*2; 
         //  img.width = imgW*2;
		   $(img).css({"position":"fixed","z-index":"1000",width:"100%",left:"0",height:"auto",top:"20%"});
		   $(".backcover").append('<a href="'+$(img).attr("src")+'" download="保存图片"">保存图片</a>');
		   $(img).attr("sflag","false")
		  
       }else{
	   
	   $(img).attr("sflag","true")
           //图片为放大状态,设置图片宽高为现在宽高的二分之一
           flag = true;//把状态设为正常状态
           img.height = imgH/2;
           img.width = imgW/2;
	   $(".backcover").css("display","none");
		   $(img).css({"position":"inherit","z-index":"2",width:"80",left:"0",height:"auto"});
       }
   }
 
</script>

</body></html>


